import service from "..";
//获取首页轮播图的数据
export function getBanner() {
    return service({
        method: 'get',
        url: '/banner?type=2',
    })
}
//获取发现好歌单
export function getMusicList() {
    return service({
        method: 'get',
        url: '/personalized?limit=10'
    })
}
//搜索
export function getSearchMusic(data) {
    return service({
        method: 'get',
        url: `/cloudsearch?keywords=${data}`
    })
}
//登录
export function getPhoneLogin(data) {
    return service({
        method: 'get',
        url: `/login/cellphone?phone=${data.phone}&password=${data.password}`
    })
}
//获取用户详情/user/detail?uid=32953014
export function getLoginUser(id) {
    return service({
        method: 'get',
        url: `/user/detail?uid=${id}`
    })
}